package com.treeroot.springbootwithelastic.com.treeroot.es.service;

import org.elasticsearch.action.bulk.BulkResponse;

import java.io.IOException;
import java.util.Map;

public interface ProductService {


    BulkResponse  export(String keyword) throws Exception;

    Map<String,Object> search(String keyword, Integer currentPage, Integer pageSize) throws IOException;

}
